int* twoSum(int* nums, int numsSize, int target, int* returnSize) 
{
    static int result[2] = {0};//返回值下标初始化
    //int* result = (int*)malloc(sizeof(int) * 2); // 动态分配内存，确保结果在函数外部有效
    //if (!result) return NULL; // 内存分配失败检查
    for(int i = 0; i < numsSize; i++)
    {
        for(int j = i + 1; j < numsSize; j++)
        {
            if(nums[i] + nums[j] == target)
            {
                result[0] = i;
                result[1] = j;
                *returnSize = 2;
                return result;
            }
        }
    }
    return 0; 
}